import pygame

import unittest
from settings import Settings
from game_stats import GameStats

class Test(unittest.TestCase):
    def test1(self):
        # 初始化pygame、设置和屏幕对象
        pygame.init()
        ai_settings = Settings()
        # 创建一个用于存储游戏统计信息的实例
        c = GameStats(ai_settings)
        c.load_high_score()
        result=c.high_score
        self.assertEqual(result,250)